import http from '../utils/httpUtils'

export const getProductListAPI = () => http.get(`/product/list`);

export const getProductByIdAPI = () => http.get(`/product/${id}`, id);

export const getProductsByCateIdAPI = (cateId) => http.get(`/product/cate/${cateId}`)

export const searchProductsByTitleAPI = (title) => http.get(`/product/search/${title}`)